package com.item.mall.service;

import com.item.mall.entity.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.item.mall.vo.CartVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张津瑞、彭家博
 * @since 2021-07-31
 */
public interface CartService extends IService<Cart> {

    public List<CartVO> getCartList(Integer userId);

    public boolean addQuantity(Integer productId,
                               Integer quantity,
                               Float cost,
                               Integer userId);


}
